package com.ly.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ly.entity.Member;
import com.ly.pojo.vo.MemberBelongVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author : 黑渊白花
 * @date : 2025/2/8 22:09
 */
@Mapper
public interface MemberMapper extends BaseMapper<Member> {


    public IPage<MemberBelongVO> getAllPage(
            @Param("page") IPage<MemberBelongVO> page,
            @Param("teamName") String teamName,
            @Param("userName") String userName);

    public IPage<MemberBelongVO> getBelongPage(
            @Param("page") IPage<MemberBelongVO> page,
            @Param("teamId") Integer teamId,
            @Param("college") String college,
            @Param("userName") String userName);

    public List<MemberBelongVO> getTeamMember(@Param("teamId") Integer teamId);

    List<Map<String, Object>> getMemCollege(@Param("teamId") Integer teamId);


}
